execs().with_status(0));
assert_that(&p.root().join("target/doc/foo/index.html"), existing_file());
}
+
+#[test]
+fn plugins_no_use_target() {
+ if !cargotest::is_nightly() {
+ return
+ }
+ let p = project("foo")
+ .file("Cargo.toml", r#"
+ [package]
+ name = "foo"
+ version = "0.0.1"
+ authors = []
+
+ [lib]
+ proc-macro = true
+ "#)
+ .file("src/lib.rs", "");
+ assert_that(p.cargo_process("doc")
+ .arg("--target=x86_64-unknown-openbsd")
+ .arg("-v"),
+ execs().with_status(0));
+}